<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="文章列表">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">
                            <div class="toolbor-module">
                                <a href="addArticle.html" class="input-button">+新增文章</a>
                            </div>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <form action="batchOperateArticle.html" method="post" id="batchOperateArticleForm">
                                <input type="hidden" name="type" value="${type!0}" id="type"/>
                                <table class="data-list">
                                    <tr class="header">
                                        <td class="w80"><label class="ch"><input class="all-c checkbox" type="checkbox" name="allcheck" onclick="checkFormAll(this.form)"/>全选</label></td>
                                        <td>ID</td>
                                        <td>标题</td>
                                        <td>栏目类型</td>
                                        <td>状态</td>
                                        <td>排序</td>
                                        <!-- <td>属性</td> -->
                                        <td>操作</td>
                                    </tr>
                                    <#list list as item>
                                        <#assign status=item.status!(1)>
                                            <tr>
                                                <td ><label><input class="c checkbox" type="checkbox" name="bid" id="id[]" value="${item.id!0}"/></label></td>
                                                <td>${item.id!0}</td>
                                                <td class="tal" style="text-align: center;">${item.name!""}</td>
                                                <td><#if item.site??&&item.site.name??>${item.site.name}</#if></td>
                                                <td><#if status== 1>显示<#else>隐藏</#if></td>
                                                <td>
                                                    <span>${item.sort?c}</span>
                                                </td>
                                                <!-- <td>-</td> -->
                                                <td>
                                                    <dd>
                                                        <a class="un" href="modifyArticle.html?id=${item.id!0}">修改</a>
                                                    </dd>
                                                    <dd>
                                                        <a class="un" href="javascript:;" onClick="javascript:if(confirm('确定要删除吗?删除后将不可恢复')) location.href='delArticle.html?id=${item.id!0}'">删除</a></td>
                                                    </dd>
                                            </tr>
                                    </#list>
                                </table>
                            </form>

                            <!--底部工具栏--{-->
                            <div id="bottomToolbar" class="clearfix">
                                <div class="other-tool">
                                    <!-- <div class="input-main">
                                        <input name="type" type="button" class="input-button" value="显示" onclick="javascript:submitArticle(2);"/>
                                        <input name="type" type="button" class="input-button" value="隐藏" onclick="javascript:submitArticle(3);"/>
                                        <input name="type" type="button" class="input-button" value="删除" onclick="javascript:submitArticle(6);"/>
                                    </div> -->
                                    <dl class="refresh-data">
                                        <dt class="refresh-data-icon"></dt>
                                        <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                    </dl>
                                </div>

                                <!--翻页系统--{-->
                                <div class="container s_formPage">
                                    <#import "../../common/page.html" as pager>
                                        <@pager.pagination page=page url="/admin/article/showArticle.html" map=param style="style1" />
                                </div>
                                <!--翻页系统--}-->
                            </div>
                            <!--底部工具栏--}-->
                        </div>
                        </form>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <#include "../../jsPage.html">
    <div class="msgClass">
    <@s.actionmessage/>
    </div>
        <script>
            function submitArticle(type){
                $("#type").val(type);
                $("#batchOperateArticleForm").submit();
            }
        </script>
    </body>
</html>
